import request from '@/utils/request'

// 查询仓库基础信息列表
export function listWmsWarehouseBase(query) {
  return request({
    url: '/system/wmsWarehouseBase/list',
    method: 'get',
    params: query
  })
}

// 查询仓库基础信息详细
export function getWmsWarehouseBase(warehouseId) {
  return request({
    url: '/system/wmsWarehouseBase/' + warehouseId,
    method: 'get'
  })
}

// 新增仓库基础信息
export function addWmsWarehouseBase(data) {
  return request({
    url: '/system/wmsWarehouseBase',
    method: 'post',
    data: data
  })
}

// 修改仓库基础信息
export function updateWmsWarehouseBase(data) {
  return request({
    url: '/system/wmsWarehouseBase',
    method: 'put',
    data: data
  })
}

// 删除仓库基础信息
export function delWmsWarehouseBase(warehouseId) {
  return request({
    url: '/system/wmsWarehouseBase/' + warehouseId,
    method: 'delete'
  })
}
